using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace sCicero
{
    public class Grades : Base
    {
        //todo: expection handling
        private const string GRADES = "grades";

        public Grades(ref Data oData)
        {
            m_Table = GRADES;
            m_oData = oData;
        }


        public Errorcode New(string sName)
        {
            DataRow o_Dr = m_oData.GetGenericDataTable(GRADES).NewRow();
            o_Dr["name"] = sName;
            m_oData.GetGenericDataTable(GRADES).Rows.Add(o_Dr);
            m_oData.AcceptChanges(GRADES);
            return Errorcode.NOERROR;
        }
       
    }
}
